<?php #demo Ajax
if(!empty($_POST['test']))
{
	$conn->query("select title from pages where templ='product_category'");
	$arr=array();
	while($row=$conn->fetch())
	{
		$arr[]=$row->title;
	}
	$ajax=print_r($arr,true);
}

